package com.atguigu.order;

import com.atguigu.order.bean.Order;
import com.atguigu.vo.SearchVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-order")
public interface OrderFeignClient {

    @GetMapping("/order/get")
    String getOrder();

    @GetMapping("/order/get2/{id}")
    String getOrder2(@PathVariable("id") Long id);

    @GetMapping("/order/get3")
    String getOrder3(@RequestParam(name = "id") Long id);

    @PostMapping("/order/get4")
    String getOrder4(@RequestBody SearchVO searchVO);

    @GetMapping("/order/createOrder")
    Order createOrder();
}
